{%  extends "base.html"  %}

{% block mainbody %}
<h3>添加相册信息</h3>
<form action="{% url 'insertpic' %}" enctype="multipart/form-data" method="post">
    {% csrf_token %}

    <table>
        <tr>
            <td>标题：</td>
            <td><input type="text" name="name"></td>

        </tr>

        <tr>

            <td>图片：</td>
            <td><input type="file" name="mypic"></td>
        </tr>

        <tr>
            <td colspan="2" align="center">
                <input type="submit" name="添加">
                <input type="reset" name="重置">
            </td>

        </tr>


    </table>


</form>

{% endblock %}